Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit bb538bf1296d2e1c1a9ff354430d54047e8afb02


Parents : 0baaeff
Author : etux <etux@localhost>
Date : 2024-05-24T12:25:04-07:00

minor changes

Changes

2 files changed, 9 insertions(+), 6 deletions(-)

M README +3
M core.py +6 -6

Diff

diff --git a/README b/README
index 58023d3..9d1cd9b 100644
--- a/README
+++ b/README
@@ -6,3 +6,6 @@ This template handles:
* Users can message eachother (internal, not using LXMF)
* Administrative way to manage users
* Example page to create your own pages that require authentication.
+
+# Default Login
+admin / admin

diff --git a/core.py b/core.py
index ed35705..85d352c 100644
--- a/core.py
+++ b/core.py
@@ -7,10 +7,10 @@ import time
import hashlib
# Path to where pages are, used in generating links.
-page_path = '/page/app'
+page_path = '/page'
# Directory to keep data such as user files, messages, etc.
-data_directory = '/home/user/path/to/app_data/'
+data_directory = '/home/reticulum/nn_app/app_data/'
# Title of your node page, appears on all pages
title = '`!Node App Template`! \n A template to make really cool NomadNet sites'
@@ -20,7 +20,7 @@ footer_text = 'footer text here. other cool links.'
# Links to appear in the header
header_links = [
- '`!`[Example`:/page/app/example.mu]`!',
+ '`!`[Example`:/page/example.mu]`!',
]
# Use local time or UTC
@@ -307,14 +307,14 @@ def header(session):
auth_link = '`!`[Login`:' + page_path + '/login.mu]`!'
profile_link = ''
if registration_enabled:
- profile_link = '`!`[Register`:' + page_path + '/register.mu]`!'
+ profile_link = '`!`[Register`:' + page_path + '/register.mu]`! | '
message_link = ''
link_string = '| '
for link in header_links:
link_string = link_string + link + ' |'
if session:
auth_link = '`!`[Logout`:' + page_path + '/logout.mu]`!'
- profile_link = '| `!`[Profile`:' + page_path + '/my_profile.mu]`!'
+ profile_link = '| `!`[Profile`:' + page_path + '/my_profile.mu]`! | '
message_link = ' `!`[Messages`:' + page_path + '/messages.mu]`!'
## print(os.environ)
print('#!c=0')
@@ -322,7 +322,7 @@ def header(session):
-
`c''' + title + '''
-
-`!`[Home`:''' + page_path + '''/index.mu]`! ''' + link_string + message_link + ''' ''' + profile_link + ''' | ''' + auth_link + ''' | ''' + get_time() + '''
+`!`[Home`:''' + page_path + '''/index.mu]`! ''' + link_string + message_link + ''' ''' + profile_link + auth_link + ''' | ''' + get_time() + '''
`a
-
''')


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────